<template>
  <div>
    <h1>{{name}}</h1>
    <h2>{{num2-num1}}</h2>
    <h2>{{num2>num1?num2:num1}}</h2>
    <h2>{{obj.age}}</h2>
    <h2>{{obj['age']}}</h2>
  </div>
</template>

<script>
export default {
  name: 'VuecliHomeworkDemoApp',

  data() {
    return {
      name:'zhangsan',
      num1:20,
      num2:30,
      obj:{
        age:18
      }
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>